@calendar-prefix-cls: ~"@{css-prefix}calendar";

.@{calendar-prefix-cls} {
}

.@{calendar-prefix-cls}{
  &-header{
      display: flex;
      justify-content: space-between;
      padding: 12px;
      border-bottom: 1px solid @border-color-split;

      &-title{
          color: @title-color;
          font-size: 18px;
      }

      &-action{

      }
  }

  &-table{
      table-layout: fixed;
      width: 100%;

      thead th{
          padding: 24px 0 6px 6px;
          text-align: left;
          font-size: 14px;
      }

      td{
          font-size: 14px;
          border-bottom: 1px solid @border-color-split;
          border-right: 1px solid @border-color-split;
          vertical-align: top;
      }
      tr:first-child td {
          border-top: 1px solid @border-color-split;
      }

      tr td:first-child {
          border-left: 1px solid @border-color-split;
      }

      &-day{
          box-sizing: border-box;
          height: 100px;
          padding: 6px;
          transition: background-color @transition-time @ease-in-out;
          cursor: pointer;
          &:hover{
              background-color: ~`colorPalette("@{primary-color}", 1)`;
          }
          &-other{
              .haloe-calendar-table-day-title{
                  color: @btn-disable-color;
              }
          }
          &-current{
              .haloe-calendar-table-day-title{
                  color: @primary-color;
              }
              background-color: ~`colorPalette("@{primary-color}", 1)`;
          }
      }
  }
  &-table-year{
      padding-top: 24px;
  }
}